<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">

<!-- Viewport Metatag -->
<!-- <meta name="viewport" content="width=device-width,initial-scale=1.0"> -->

<!-- Plugin Stylesheets first to ease overrides -->

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/bootstrap/css/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="__PUBLIC__/css/center.css">

<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.4.min.js"></script>


<style type="text/css">


    body{

        width: 1200px;
        /*height: 300px;*/
    }

    #sel{

        width: 174px;
        height: 30px;
        line-height: 30px;
    }




</style>
</head>

<body>

    <center>
        <div class="all">
            <div class="container">
            <div class="row">
                <div class="col-md-10">
                        <div class="panel panel-primary">
                          <div class="panel-heading">商品管理</div>
                          <div class="panel-body">
                           
                          </div>
                          
                                <table class="table">
                                    <tr>
                                        <th>商品名称</th>
                                        <th>商品库存</th>
                                        <th>商品logo</th>
                                        <th>商品编码</th>
                                        <th>商品价格</th>
                                        <th>商品属性</th>
                                        <th>操作</th>

                                    </tr>
                             
                                <foreach name = 'res' item = 'val'>
                                    <tr>
                                        <foreach name='val.proudctInfo' item='v'>
                                            <th>{$v.prodectsname}</th>
                                        </foreach> 
                                        <th>{$val.num}</th>                  
                                  
                                        <th><img  style="width:60px;height:60px;" src="__PUBLIC__/Uploads/{$val.logo}" alt=""></th>

                                        <th>
                                        {$val.proudct_id}
                                        </th>

                                        <th>{$val.price}</th>

                                        <foreach name='val.skuInfo' item='vo'>
                                        <th>{$vo.attr_name}:{$vo.attr_value}</th>
                                        </foreach>
                                        

                                     
                                    
                                        <th align="center">

                                         <a href='{:U("Admin/Goods/detail",array('proudct_id'=>$val["proudct_id"]))}' class="btn btn btn-info">副图</a>
                                        
                                        
                                      

                                                
                                        <a href='{:U("Admin/Goods/del",array("sku"=>$val["sku_id"],"product"=>$val["proudct_id"]))}' class="btn btn btn-danger">删除</a>
                                        </th>

                                    </tr>
                                </foreach>
                                </table>
                           
                          </div>
                </div>
            </div>
        </div>
    </div>  
    </center>

        

</body>
</html>
<script>

</script>
